/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.controllers;

import com.bs.beans.Banco;
import com.bs.extensoesSwing.AbstractGridController;
import com.bs.forms.BancoForm;

/**
 *
 * @author Bone
 */
public class BancoGridController <E> extends AbstractGridController<Banco>{

    @Override
    public void novo() {
        Banco b = new Banco();
        BancoForm f = new BancoForm(b);
        f.setVisible(true);
        if(b.getId()!= null)adicionarALista(b);
        f = null;
        b = null;
    }

    @Override
    public void alterar() {
        BancoForm f = new BancoForm(getBeanSelecionado());
        f.setVisible(true);
        f = null;
    }
    
}
